
class Amindeb:
    def call(self):
        print('动物的叫声')

class Monkey():
    def call(self):
        print('猴子叫')

class Cat(Amindeb):
    def call(self):
        print('喵喵')

class Dog(Amindeb):
    def call(self):
        print('汪汪')

#定义统一接口
def do_call(obj):
    obj.call()
    print('它们都在叫')


do_call(Monkey())
do_call(Dog())
do_call(Cat())